a = int(input("请输入一个四位整数，我将把其反向:"))

a = str(a)
a = a[::-1]
a = int(a)
print(a)